package com.mjee.app.holder;

import com.mjee.app.domain.User;

/**
 * 
 * @author Administrator
 */
public class RequestUserHolder {
	
	private static ThreadLocal<User> USER_HOLDER = new ThreadLocal<>();
	
	public static User getCurrentUser() {
		return USER_HOLDER.get();
	}
	
	public static void setCurrentUser(User user) {
		USER_HOLDER.set(user);
	}
	
	public static void removeCurrentUser() {
		USER_HOLDER.remove();
	}
	
}
